﻿<# requires -version 2
.SYNOPSIS

.DESCRIPTION
Configuration file for SqlAdminBackup.ps1
.NOTES
Filename   : SqlAdminBackup.config.ps1
Author     : Niels Grove-Rasmussen
.LINK
.SYNTAX
	.\SqlAdminBackup.ps1 -ConfigFileName <config file name>
.EXAMPLE
	.\SqlAdminBackup.ps1
#>

Write-Debug " [Config File]: Reading Configuration File..."

[String]$Script:TaskName = 'Sql Full Db Backup (ALL)'
#[String]$Script:$TaskName = 'Sql Diff Db Backup (ALL)'
#[String]$Script:$TaskName = 'Sql Log Backup (ALL)'
#[String]$Script:$TaskName = 'Sql Full Db Backup (SYSTEM)'
#[String]$Script:$TaskName = 'Sql Full Db Backup (USER)'
#[String]$Script:$TaskName = 'Sql Full Db Backup (ReportServer)'

[String]$Script:ComputerName = '(local)'
[String]$Script:DbInstanceName = $null  # $null for default

[String[]]$Script:DbNames = '__ALL_DATABASES'
#[String[]]$Script:DbNames = '__SYSTEM_DATABASES'
#[String[]]$Script:DbNames = '__USER_DATABASES'
#[String[]]$Script:DbNames = 'ReportServer','ReportServerTempDB'  # List of named databases

[String]$BackupFolder = $null  # $null for default backup folder

[String]$BackupType = 'FULL'
#[String]$BackupType = 'DIFF'
#[String]$BackupType = 'LOG'

[Bool]$AddFull = $true  # Take both Diff/Log and Full backup if full backup is missing

$Script:BlockSize = $null  # $null for default

$Script:BufferCount = $null  # $null for default

[Bool]$Script:DoCheckSum = $false  # 

$Script:DoCompression = $null  # { True | False | NULL } : NULL for default

[Bool]$Script:CopyOnly = $false

$Script:BackupDescription = $null

[Bool]$Script:DoExecute = $false  # $false: Commands are shown but not executed

$Script:ExpireDate = $null  # Date where backup set can be overwritten. Precedence below RetailDays.

$Script:File = $null

$Script:FileCount = $null

$Script:FileGroup = $null

$Script:MaxTransferSize = $null  # Largest unit in Bytes between database instance and backup media. $null for default.

$Script:Name = $null  # Name of backup. Max 128 chars. If $null backup name is autogenerated.

$Script:RetainDays = $null  # Number of days before backup can be overwritten. Precedence above ExpireDate.

[Bool]$Script:DoVerify = $true  # Verify backup
